{% load widget_tweaks %}
{{ smodel.management_form }}
<hr>
<form id="stForm">
Summer start month: &nbsp;{{smodel.summer_start_month|add_class:"span1"}}<br>
Summer end month: &nbsp;{{smodel.summer_end_month|add_class:"span1"}}<br>
Space type weight: &nbsp;{{smodel.weight|add_class:"span1"}}
<br>
<table class="table table-hover">
	<thead>
		<th></th>
		<th>Category 1</th>
		<th>Category 2</th>
		<th>Category 3</th>
		<th>Category 4</th>
		<th>Category 5</th>
	</thead>
	<tbody>
	<tr>
		<td colspan="0" style="font-weight: bold">Thermal Comfort</td>
	</tr>
	<tr>
		<td>Summer lower condition</td>
		<td>{{smodel.qc1_tc_summer_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc2_tc_summer_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc3_tc_summer_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc4_tc_summer_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc5_tc_summer_condition_low|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td>Summer upper condition</td>
		<td>{{smodel.qc1_tc_summer_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc2_tc_summer_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc3_tc_summer_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc4_tc_summer_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc5_tc_summer_condition_high|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td>Winter lower condition</td>
		<td>{{smodel.qc1_tc_winter_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc2_tc_winter_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc3_tc_winter_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc4_tc_winter_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc5_tc_winter_condition_low|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td>Winter upper condition</td>
		<td>{{smodel.qc1_tc_winter_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc2_tc_winter_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc3_tc_winter_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc4_tc_winter_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc5_tc_winter_condition_high|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td colspan="0" style="font-weight: bold">Indoor Air Quality</td>
	</tr>
	<tr>
		<td>IAQ lower condition</td>
		<td>{{smodel.qc1_iaq_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc2_iaq_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc3_iaq_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc4_iaq_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc5_iaq_condition_low|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td>IAQ upper condition</td>
		<td>{{smodel.qc1_iaq_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc2_iaq_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc3_iaq_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc4_iaq_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc5_iaq_condition_high|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td colspan="0" style="font-weight: bold">Lighting</td>
	</tr>
	<tr>
		<td>Lighting lower condition</td>
		<td>{{smodel.qc1_lighting_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc2_lighting_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc3_lighting_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc4_lighting_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc5_lighting_condition_low|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td>Lighting upper condition</td>
		<td>{{smodel.qc1_lighting_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc2_lighting_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc3_lighting_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc4_lighting_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc5_lighting_condition_high|add_class:"span1"}}</td>
	</tr>
		<tr>
		<td colspan="0" style="font-weight: bold">Acoustics</td>
	</tr>
	<tr>
		<td>Acoustics lower condition</td>
		<td>{{smodel.qc1_acc_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc2_acc_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc3_acc_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc4_acc_condition_low|add_class:"span1"}}</td>
		<td>{{smodel.qc5_acc_condition_low|add_class:"span1"}}</td>
	</tr>
	<tr>
		<td>Acoustics upper condition</td>
		<td>{{smodel.qc1_acc_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc2_acc_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc3_acc_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc4_acc_condition_high|add_class:"span1"}}</td>
		<td>{{smodel.qc5_acc_condition_high|add_class:"span1"}}</td>
	</tr>
	</tbody>
</table>
	<p style="margin-top: 5px"><input type="submit" class="btn" value="Save" onclick="submitStInstance(); return false;"/>
		<input type="submit" class="btn" value="Cancel" onclick="addStInstance(); return false;"/>
		<input type="submit" class="btn" value="Delete" onclick="deleteStInstance(); return false;"/>
		<span id="success"><strong>&nbsp;&nbsp;{{ saveStatus }}</strong></span>
	</p>
</form>